package com.lovo.service;

import com.lovo.dto.UserDTO;
import com.lovo.model.UserDO;
import com.lovo.result.GlobalHandleException;

/**
 * @title 用户业务接口
 * @author: luo
 * @date: 2020/11/20 17:45
 */
public interface UserService {

    /**
     * 用户登录
     * @param userDTO 用户传输对象
     * @return 登录用户对象
     */
    UserDO login(UserDTO userDTO) throws GlobalHandleException;

    /**
     * 用户注册
     * @param userDTO
     */
    void register(UserDTO userDTO) throws GlobalHandleException;
}
